package com.allenkerr.client;

import com.allenkerr.client.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 小柯
 * @date 2019/05/15
 */
@FeignClient(name = "api-client", url = "localhost:8013", configuration = FeignConfig.class)
public interface ApiClient {

  @GetMapping("/api/three")
  ResponseEntity<String> apiThree(@RequestParam long time);

}
